﻿@inject Personalblog.Contrib.SiteMessage.Messages Messages
@inject IConfiguration Configuration

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="ZY知识库 继承画星星博客，这是一个用于分享知识和经验的平台，我会在这里分享一些我学习和工作中的经验和心得，希望能够对你有所帮助。">
    <meta name="keywords" content="ZY知识库,.net,.NET,.NET Core,C#,python,Python,Java,java web,知识分享,个人博客">
    <title>ZY知识库 · ZY - @ViewData["Title"]</title>
    <link rel="icon" href="~/images/logo2.gif"/>
    <link rel="stylesheet" href="https://blog.sblt.deali.cn:9000/lib/bootstrap/dist/css/bootstrap.css">
    @if (Configuration.GetSection("Qiliu").GetValue<string>("StarandOff") == "Star")
    {
        <link href="https://cdn.pljzy.top/public/APlayer.min.css" rel="stylesheet">
        <script src="https://cdn.pljzy.top/public/vue.global.min.js"></script>
        <script src="https://cdn.pljzy.top/public/all.min.js" integrity="sha512-u3fPA7V8qQmhBPNT5quvaXVa1mnnLSXUep5PS1qo5NRzHwG19aHmNJnj1Q8hpA/nBWZtZD4r4AX6YOt5ynLN2g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    }
    else
    {
        <link href="https://cdn.bootcdn.net/ajax/libs/aplayer/1.10.1/APlayer.min.css" rel="stylesheet">
        <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.4.27/vue.global.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/js/all.min.js" integrity="sha512-u3fPA7V8qQmhBPNT5quvaXVa1mnnLSXUep5PS1qo5NRzHwG19aHmNJnj1Q8hpA/nBWZtZD4r4AX6YOt5ynLN2g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    }
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
    <script src="https://blog.sblt.deali.cn:9000/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer"/>


    <link rel="stylesheet" href="~/css/features.css">
    <link rel="stylesheet" href="~/css/metro.css">
    <link rel="stylesheet" href="~/css/footer.css">
    <link rel="stylesheet" href="~/lib/Master.css"/>
    <link href="~/css/nprogress.css" rel="stylesheet"/>
    <script src="~/js/jquery.min.js"></script>
    <script src="/js/nprogress.js"></script>
    <script src="/js/APlayer.min.js"></script>
    @await RenderSectionAsync("head", false)
</head>
<body>
<header id="vue-header">
    <div class="px-3 py-2 bg-dark text-white">
        <div class="container">
            <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
                <a class="d-flex align-items-center my-2 my-lg-0 me-lg-auto text-white text-decoration-none"
                   asp-controller="Home" asp-action="Index">
                    <img src="~/images/logo4.jpg" class="round-icon animated-icon" alt="">
                </a>

                <ul class="nav col-12 col-lg-auto pt-1 my-2 justify-content-center my-md-0 text-small">
                    <li>
                        <a class="nav-link text-white" href="@Url.Action("Index", "Home")">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                @*<i class="bi bi-house-door-fill" style="font-size:25px"></i>*@
                                <i class="fa-solid fa-house fa-2xl"></i>
                            </div>
                            Home
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" href="@Url.Action("List", "Blog")">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-table-list fa-2xl"></i>
                            </div>
                            Blog
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="Photo" asp-action="Index">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-images fa-2xl"></i>
                            </div>
                            Photos
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="About" asp-action="Index">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-circle-info fa-2xl"></i>
                            </div>
                            About
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="LinkExchange" asp-action="Add">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fas fa-link fa-2xl"></i>
                            </div>
                            Links
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="MsgBoard" asp-action="Index">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-comments fa-2xl"></i>
                            </div>
                            Fprint
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="ArticleArc" asp-action="Index">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-chart-column fa-2xl"></i>
                            </div>
                            STATS
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="Tag" asp-action="Index">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-tags fa-2xl"></i>
                            </div>
                            Tags
                        </a>
                    </li>
                    <li>
                        <a class="nav-link text-white" asp-controller="Rss" asp-action="Index">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-rss fa-2xl"></i>
                            </div>
                            RSS
                        </a>
                    </li>
                    @* <li> *@
                    @*     <a class="nav-link text-white" asp-controller="Tool" asp-action="Index"> *@
                    @*         <div class="bi d-block mx-auto mb-1 text-center"> *@
                    @*             <i class="fa-solid fa-screwdriver-wrench fa-2xl"></i> *@
                    @*         </div> *@
                    @*         Tools *@
                    @*     </a> *@
                    @* </li> *@
                    <li>
                        <a class="nav-link text-white" href="https://www.travellings.cn/go.html" target="_blank" rel="noopener" title="开往-友链接力">
                            <div class="bi d-block mx-auto mb-1 text-center">
                                <i class="fa-solid fa-train-subway fa-2xl"></i>
                            </div>
                            开往
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="px-3 py-2 border-bottom mb-2">
        <div class="container d-flex flex-wrap justify-content-center">
            <form class="col-12 col-lg-auto mb-2 mb-lg-0 me-lg-auto"
                  asp-controller="Search" asp-action="Blog">
                <input type="search" class="form-control" placeholder="全站检索文章(Enter)..." aria-label="Search" name="keyword">
            </form>
            <div class="text-end">
                <span class="dropdown me-2">
                    <a href="#" class="btn btn-light" id="dropdown" role="button" onclick="stopp()">
                        <i class="bi bi-arrow-repeat"></i>
                        樱花
                    </a>
                </span>
                <span class="dropdown me-2">
                    <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
                        Themes
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
                        <li v-for="theme in themes">
                            <a v-if="theme.name===currentTheme" class="dropdown-item active">{{theme.name}}</a>
                            <a v-else class="dropdown-item" v-on:click="setTheme(theme.name)">{{theme.name}}</a>
                        </li>
                    </ul>
                </span>
                @* todo 登录注册功能后续再来 *@
                @* <button type="button" class="btn btn-light text-dark me-2">Login</button> *@
                @* <button type="button" class="btn btn-primary">Sign-up</button> *@
            </div>
        </div>
    </div>
    <div class="topbar">
        <div class="line"></div>
    </div>
</header>
<main id="vue-app">
    @while (!Messages.IsEmpty)
    {
        <div class="container mt-3">
            @{
                var message = Messages.Dequeue();
                <partial name="Widgets/Alert" model="message"/>
            }
        </div>
    }
    <div id="HomeAlertPlaceholder" class="custom-alert">
    </div>
    @RenderBody()
</main>
<footer class="bg-dark">
    <div id="footer">
        <div class="container">
            <div class="row">
                <div id="footer-content" class="col-md-10 col-md-offset-3 footer-list text-center">
                    <p class="social-icons">
                        <a target="_blank" rel="nofollow" href="https://www.cnblogs.com/ZYPLJ/" style="text-decoration: none;">
                            <i class="fa-solid fa-blog fa-2xl"></i>
                        </a>
                        <a asp-controller="About" asp-action="Index" style="text-decoration: none;">
                            <i class="fab fa-weixin fa-2xl"></i>
                        </a>
                        <a target="_blank" rel="nofollow" href="https://github.com/ZyPLJ" style="text-decoration: none;">
                            <i class="fab fa-github fa-2xl"></i>
                        </a>
                        <a target="_blank" rel="nofollow" href="https://gitee.com/zyplj" style="text-decoration: none;">
                            <i class="fab fa-git-alt fa-2xl"></i>
                        </a>
                        <a href="https://www.travellings.cn/go.html" target="_blank" rel="noopener" title="开往-友链接力">
                            <img src="https://www.travellings.cn/assets/logo.gif" alt="开往-友链接力" width="120">
                        </a>
                    </p>
                    <p>
                        Copyright © @DateTime.Now.Year.ToString()
                        <a href="https://gitee.com/zyplj">ZY</a>. All Rights Reserved.
                    </p>
                    <p>
                        All content is released under
                        <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en" rel="external nofollow" target="_blank">
                            Creative Commons
                            BY-NC-SA 3.0
                        </a>.
                        <br>
                        If articles including programming codes (e.g. Java, Python, C#, Go) are exceptions, which are released under
                        <a href="http://www.gnu.org/licenses/gpl.html"
                           rel="external nofollow" target="_blank">
                            GPL
                            v3
                        </a>.
                    </p>
                    <p>
                        所有內容皆以<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en" rel="external nofollow" target="_blank"> 知识共享署名-相同方式共享 4.0 国际许可协议 </a>进行发布。<br>
                        含有程序代码內容的文章 (如 Java, Python, C#, Go) 除外，包含的程序代码皆以 <a href="http://www.gnu.org/licenses/gpl.html" rel="external nofollow" target="_blank">GPL v3</a> 发布。
                    </p>
                    <p>
                        本站使用 <a href="https://github.com/ZyPLJ/personalblog">ZYBlog</a> 开源博客系统，
                        基于 <a href="https://dotnet.microsoft.com/zh-cn/">.NetCore</a> 技术构建
                    </p>
                    <p>
                        <span id="siteRunningTime" style="color:cornsilk">
                            网站运行时间：计算中...
                        </span>
                        &nbsp;&nbsp;
                        <a href="https://beian.miit.gov.cn" target="_blank">湘ICP备2024053728号</a>
                    </p>
                </div>
            </div>
        </div>
    </div>
</footer>
<!-- 点击烟花特效 -->
<canvas width="1366" height="662" style="position: fixed; left: 0px; top: 0px; z-index: 2147483647; pointer-events: none;"></canvas>
<!-- 为博客底部添加音乐组件 -->
<div id="player" class="aplayer"></div>

<script src="~/lib/MasterMusic.js"></script>
<script src="~/lib/cursor-effects.js"></script>
<script src="~/lib/Master.js"></script>
<script src="~/lib/site.js"></script>
@await RenderSectionAsync("bottom", false)
</body>
</html>